package org.jeecg.modules.biz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.sql.Timestamp;
import java.util.Date;

/**
 *
 * 认筹任务
 *
 */
@Data
@TableName("event_withdraw")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "event_withdraw", description = "燃烧提现")
public class EventWithdraw {

    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    // 认筹者
    @ApiModelProperty(value = "提现人")
    private String address;

    // 认筹金额
    @ApiModelProperty(value = "提现金额")
    private Long amount;

    // 任务id
    @ApiModelProperty(value = "任务id")
    private String transactionId;

    // 时间戳
    @ApiModelProperty(value = "时间戳")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd hh:mm:ss")
    private Timestamp timestamp;

    public EventWithdraw() {

    }

    public EventWithdraw(String address, Long amount, String transactionId, Timestamp timestamp) {
        this.address = address;
        this.amount = amount;
        this.transactionId = transactionId;
        this.timestamp = timestamp;
    }
}
